package com.songshuai.webapi.permission.dao;

import com.songshuai.webapi.permission.model.YxUserNavigations;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface YxUserNavigationsMapper {

    //根据菜单id删除用户菜单关联
    int deleteNavUserRelation(@Param("navigationId")Integer navigationId);

    //根据用户id删除用户菜单关联
    int deleteUserNavRelation(@Param("userId")Integer userId);

    //根据用户id查询用户菜单
    List<YxUserNavigations> selectByUserId(Integer userId);

}